<template>
	<view class="">
		<u-toast ref="ucToast"></u-toast>
		<!-- 交易确认弹窗-->
		<u-popup :show="moneyShow" :closeable='false' bgColor='transparent' mode="center" @close="close" round="30rpx"
			:closeOnClickOverlay='false'>
			<view class="popup-two-box flex-col align-center">
				<u-toast ref="uToastInfo"></u-toast>
				<view class="title">
					取消提醒
				</view>
				<view class="close" @tap="close">
					关闭
				</view>


				<view class="tips">
					请确认是否取消此订单？
				</view>
				<view class="info-btn justify-between">
					<view class="pull-info align-center justify-center" @click="comfirm">
						确认取消
					</view>
					<!-- <view class="pull-info align-center justify-center" 
					:style="{background: '#CCC'}"
					@click="close">
						逛一逛
					</view> -->
				</view>
			</view>
		</u-popup>

	</view>

</template>

<script>
	import {
		host
	} from '@/config/config.js';
	export default {
		name: 'cancel-modal',
		components: {
			// 注册组件

		},
		props: {
			isShow: {
				type: Boolean,
				default: false,
			},
			signInfo: {
				type: Object,
				default: () => {
					return {
						desc: '早起的鸟儿有虫吃!09:00将结算奖励并自动发放至您的账户中。',
						continuous: 0,
					}
				},
			},
			num: {
				type: Number,
				default: 1,
			}
		},
		data() {
			return {
				host,
				value: '',
				checked: true,
				number: 1,
				moneyShow: false,
				parsswordShow: false,
				loading: false,
				captcha: {
					id: '',
					img: '',
					captcha: "",
				},
			}
		},
		computed: {

		},
		watch: {
			// isShow(val) {
			// 	console.log(val, 'modal');
			// 	this.moneyShow = val
			// 	if (val) {}
			// },

			isShow: {
				handler: function(o, val) {
					this.moneyShow = o
				},
				deep: true, // 深度监听
				immediate: true, // 立即执行
			}
		},
		created() {},
		methods: {
			close() {
				console.log('关闭');
				this.$emit('close')
			},
			comfirm() {
				this.$emit('comfirm', true)
			},
		}
	}
</script>

<style>
	@import '/pages/home/common.css';
</style>
<style lang="scss" scoped>
	.popup-two-box {
		position: relative;
		width: 628rpx;
		height: 486rpx;
		background: linear-gradient(180deg, #FFE9E9 0%, #FFFFFF 100%);
		border-radius: 20rpx 20rpx 20rpx 20rpx;

		.title {
			margin-top: 76rpx;
			font-family: Source Han Sans CN, Source Han Sans CN;
			font-weight: 500;
			font-size: 40rpx;
			color: rgba(0, 0, 0, 0.8);
		}

		.close {
			padding: 20rpx;
			position: absolute;
			top: 26rpx;
			right: 31rpx;
			font-weight: 400;
			font-size: 28rpx;
			color: #797979;
		}

		.tips {
			font-weight: 400;
			font-size: 32rpx;
			color: rgba(0,0,0,0.8);
			line-height: 38rpx;
			margin: 89rpx 0 90rpx;
		}

		// box-shadow: 0px 6rpx 14rpx 0px rgba(0, 0, 0, 0.16);
		.info-img {
			margin-top: 10rpx;
			width: 300rpx;
			height: 200rpx;
		}

		.info-btn {
			
		}

		.pull-info {
			width: 280rpx;
			height: 90rpx;
			background: #CC1D1D;
			border-radius: 10rpx 10rpx 10rpx 10rpx;

			font-weight: 500;
			font-size: 36rpx;
			color: #FFFFFF;
		}




		.again {
			margin-top: 40rpx;
		}

		.code-date {
			font-size: 24rpx;
			font-weight: 400;
			color: rgba(0, 0, 0, 0.54);
		}


	}
</style>